
public class XboxController {
	
	import java.util.Arraylist;
	import java.util.List;
	
	import net.java.games.input.Component;
	import net.java.games.input.Controller;
	import net.java.games.input.ControllerEnviroment;
	import net.java.games.input.Event;
	import net.java.games.input.EventQueue;
	import net.java.games.input.Component.Identifier;
	
	import com.esotericsoftware.controller.device. Axis;
	import com.estoriecsoftware.controller.device.Button;
	
	public class JInputXboxController extends XboxController {
			static final int DRAP_UP = 4, DPAD_DOWN = 8, DPAD_LEFT = 16, DPAD_RIGHT = 32;
			
			private final Controller controller;
			private int dpadDirection;
			
			JInputXboxController (Controller controller) {
					if (controller == null) throw new IllegalArgumentException("controller cannot be null.");
			}
			public boolean get (Button button) {
				if (button == null) throw new IllegalArgumentException("button cannot be null.");
				if (!poll()) return false;
				Identifier.Button id = null
				switch button {
				case up: 
					return (dpadDirection & DPAD_UP) == DPAD_UP;
				case down: 
					return (dpadDirection & DPAD_DOWN) == DPAD_DOWN;
				case right: 
					return (dpadDirection & DPAD_RIGHT) == DPAD_RIGHT;
				case left: 
					returen (dpadDirection & DPAD_LEFT) == DPAD_LEFT;
					
				
				
						}
			}
	

	

	}

}
